<template>
  <div class="carousel">
    <ul>
      <li class="now">
        <img src="./imgs/1.jpg" alt="" />
      </li>
      <li class="after">
        <img src="./imgs/2.jpg" alt="" />
      </li>
      <li>
        <img src="./imgs/3.jpg" alt="" />
      </li>
      <li>
        <img src="./imgs/4.jpg" alt="" />
      </li>
      <li>
        <img src="./imgs/5.jpg" alt="" />
      </li>
      <li class="before">
        <img src="./imgs/6.jpg" alt="" />
      </li>
    </ul>
</template>

<script>
export default {};
</script>

<style>
.carousel {
  width: 1200px;
  margin: 100px auto;
}
ul {
  list-style-type: none;
  position: relative;
  display: flex;
  min-height: 300px;
  margin-bottom: 40px;
}
ul li {
  width: 700px;
  height: 300px;
  position: absolute;
  left: 250px;
  right: 250px;
  transition: all 0.3s ease-out;
  opacity: 0;
}
li img {
  width: 100%;
  height: 100%;
}
.now {
  /*  height: 300px;
  width: 730px;*/
  z-index: 1;
  opacity: 1;
  transform: scale3d(1, 1.2, 1.2);
}
.before {
  /*left: 0;*/
  transform: translateX(-250px);
  opacity: 0.8;
}
.after {
  /*left: 500px;*/
  transform: translateX(250px);
  opacity: 0.8;
}
</style>